package jsu.xxy.coffee3.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import jsu.xxy.coffee3.domain.Material;
import jsu.xxy.coffee3.domain.MaterialNoId;
import jsu.xxy.coffee3.domain.ProductMaterial;

import java.util.List;

/**
* @author 张从轩
* @description 针对表【material】的数据库操作Service
* @createDate 2023-06-03 06:27:47
*/
public interface MaterialService extends IService<Material> {

    Page<Material> getAll(Integer pageNo, Integer pageSize);

    Page<Material> getMaterial(String name, Integer pageNo, Integer pageSize);

    Boolean upDataNum(Material material);

    Boolean deleteMaterial(Integer id);

    Boolean insertMaterial(MaterialNoId materialNoId);

    Boolean deleteStuffs(List<Integer> ids);

}
